﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace EECMISWS.WebProcessArgs
{
    [DataContract]
    public class LoginArgs
    {
        [DataMember]
        public string username { get; set; }

        [DataMember]
        public string password { get; set; }

        public bool IsVaild()
        {
            if (string.IsNullOrEmpty(username) || string.IsNullOrEmpty(password))
            {
                return false;
            }
            return true;
        }

        public override string ToString()
        {
            string strRet = string.Format("用户名:{0};密码:{1};",
                username,
                password);
            return strRet;
        }
    }
}
